package com.agilegroup.crm.requests;

import com.agilegroup.crm.model.ContactList;
import static com.agilegroup.crm.utils.CONSTANTS.*;
import com.octo.android.robospice.request.springandroid.SpringAndroidSpiceRequest;

public class ContactsJsonRequest extends SpringAndroidSpiceRequest<ContactList>{

	private String empId;
	public ContactsJsonRequest(String empId) {
		super(ContactList.class);
		this.empId=empId;
	}
	
	@Override
	public ContactList loadDataFromNetwork() throws Exception {
		return getRestTemplate().getForObject(contactsURL+empId+".json", ContactList.class);
	}
}
